package com.weichen.xd.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Dune on 2017/9/6.
 */

public class City implements Parcelable {
    public static final Creator<City> CREATOR = new Creator<City>() {
        @Override
        public City createFromParcel(Parcel source) {
            return new City(source);
        }

        @Override
        public City[] newArray(int size) {
            return new City[size];
        }
    };
    /**
     * city : 南子岛
     * cnty : 中国
     * id : CN101310230
     * lat : 11.26
     * lon : 114.20
     * prov : 海南
     */

    @SerializedName("aqi")
    private String aqi;
    @SerializedName("co")
    private String co;
    @SerializedName("no2")
    private String no2;
    @SerializedName("o3")
    private String o3;
    @SerializedName("pm10")
    private String pm10;
    @SerializedName("pm25")
    private String pm25;
    @SerializedName("qlty")
    private String qlty;
    @SerializedName("so2")
    private String so2;
    @SerializedName("city")
    private String city;
    @SerializedName("cnty")
    private String cnty;
    @SerializedName("id")
    private String id;
    @SerializedName("lat")
    private String lat;
    @SerializedName("lon")
    private String lon;
    @SerializedName("prov")
    private String prov;

    public City() {
    }

    protected City(Parcel in) {
        this.aqi = in.readString();
        this.co = in.readString();
        this.no2 = in.readString();
        this.o3 = in.readString();
        this.pm10 = in.readString();
        this.pm25 = in.readString();
        this.qlty = in.readString();
        this.so2 = in.readString();
        this.city = in.readString();
        this.cnty = in.readString();
        this.id = in.readString();
        this.lat = in.readString();
        this.lon = in.readString();
        this.prov = in.readString();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCnty() {
        return cnty;
    }

    public void setCnty(String cnty) {
        this.cnty = cnty;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getProv() {
        return prov;
    }

    public void setProv(String prov) {
        this.prov = prov;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.aqi);
        dest.writeString(this.co);
        dest.writeString(this.no2);
        dest.writeString(this.o3);
        dest.writeString(this.pm10);
        dest.writeString(this.pm25);
        dest.writeString(this.qlty);
        dest.writeString(this.so2);
        dest.writeString(this.city);
        dest.writeString(this.cnty);
        dest.writeString(this.id);
        dest.writeString(this.lat);
        dest.writeString(this.lon);
        dest.writeString(this.prov);
    }

    public String getAqi() {
        return aqi;
    }

    public void setAqi(String aqi) {
        this.aqi = aqi;
    }

    public String getCo() {
        return co;
    }

    public void setCo(String co) {
        this.co = co;
    }

    public String getNo2() {
        return no2;
    }

    public void setNo2(String no2) {
        this.no2 = no2;
    }

    public String getO3() {
        return o3;
    }

    public void setO3(String o3) {
        this.o3 = o3;
    }

    public String getPm10() {
        return pm10;
    }

    public void setPm10(String pm10) {
        this.pm10 = pm10;
    }

    public String getPm25() {
        return pm25;
    }

    public void setPm25(String pm25) {
        this.pm25 = pm25;
    }

    public String getQlty() {
        return qlty;
    }

    public void setQlty(String qlty) {
        this.qlty = qlty;
    }

    public String getSo2() {
        return so2;
    }

    public void setSo2(String so2) {
        this.so2 = so2;
    }
}
